@import '~ant-design-vue/es/style/themes/default.less';
@primary-color:  #00C2CE;
@success-color: #0EC885;
@error-color: #EF5615;
@warning-color: #F1a716;

@layout-body-background: #E9F5F5;
@layout-header-height: 56px;
@menu-collapsed-width: 64px;
// table
@table-padding-horizontal-md: 12px;

// 分页
@pagination-item-bg-active: @primary-color;
.ant-pagination .ant-pagination-item-active a {
  color: #ffffff;
}
.ant-table-pagination.ant-pagination {
  float: none;
  text-align: right;
  .ant-pagination-total-text {
    float: left;
    color: @text-color-secondary;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    overflow-x: auto;
    width: 100%;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// mixins for clearfix
.clearfix() {
  zoom: 1;
  &::before,
  &::after {
    display: table;
    content: ' ';
  }
  &::after {
    clear: both;
    height: 0;
    font-size: 0;
    visibility: hidden;
  }
}

.textOverflow() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.textOverflowMulti(@line: 3, @bg: #fff) {
  position: relative;
  overflow: hidden;
  margin-right: -1em;
  padding-right: 1em;
  max-height: @line * 1.5em;
  text-align: justify;
  line-height: 1.5em;
  &::before {
    position: absolute;
    right: 14px;
    bottom: 0;
    padding: 0 1px;
    background: @bg;
    content: '...';
  }
  &::after {
    position: absolute;
    right: 14px;
    margin-top: 0.2em;
    width: 1em;
    height: 1em;
    background: white;
    content: '';
  }
}


